<?php
defined('_JEXEC') or die('Restricted access');

/**
 * Description of codeExecution_FlowControlException
 *
 * @author George Zeakis<zeageorge@google.com>
 */
class codeExecution_FlowControlException extends Exception{
    
    protected $_return = NULL;
    
    public function __construct(array $return = array(), $message = null, $code = 0, Exception $previous = null){
        parent::__construct($message, $code, $previous);
        $this->_return = $return;
    }
    
    /**
     * 
     * @return array
     */
    public function getReturn(){
        return $this->_return;
    }
    
    public function setReturn(array $newReturnValue){
        $this->_return = $newReturnValue;
    }
}

?>
